<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/html/js/axios.min.js"></script>
    <script src="/html/js/ajax.js"></script>
    <script src="/html/js/util.js"></script>
    <link rel="stylesheet" href="index.css">
    <script>
        window.onload=function (){
            init();
        }
        async function init(){
            var info = await ajaxGet("/user/getLoginUser");
            if (info ==null || info.length ==0){
                $("infoDiv").innerHTML="你好，请选择 <a href='/html/login.html'>登录|</a>";
                $("addDiv").innerHTML="<a href='/html/add.html'>注册|</a>";
                $("manageDiv").innerHTML="<a href='/html/manage.html'>管理|</a>";
                $("styleDiv").innerHTML="<a href='/html/style.html'>风格|</a>";
            }else {
                $("showDiv").innerHTML="<a href='/html/show.html'></a>"
            }
        }
    </script>
</head>
<body>
<div id="infoDiv"></div>
<div id="addDiv"></div>
<div id="manageDiv"></div>
<div id="styleDiv"></div>
<div id="showDiv"></div>
<div style="display: flex;" id="productDiv"></div>
</body>
</html>